#!/usr/bin/python
# -*- coding: utf-8 -*-
#
#
# Forum app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 41 2010-07-21 10:33:30Z guolin.mobi $
#

from django.conf.urls.defaults import patterns, include

urlpatterns = patterns("afcpweb.apps.forum.views",
    ( r"^lang/$"                                   , "change_language"    ),
    
	( r"^$"                                        , "home"     ), 
	( r"^home/$"                                   , "home_with_args"     ),
	( r"^home/(?P<lang>.+)/$"                      , "home_with_args"     ),	

#	( r"^inscription/$"                            , "inscription" ),
#	( r"^inscription$"                             , "inscription" ),
    
    ( r"^visitors/contact/(?P<name>\w+)/(?P<lang>.+)/$"      , "contactVisitors"     ),
    ( r"^visitors/contact/(?P<name>\w+)/$"                    , "contactVisitors"     ),
    ( r"^visitors/contact/$"                                , "contactVisitors"     ),
    
    ( r"^exhibitors/contact/(?P<name>\w+)/(?P<lang>.+)/$"      , "contactExhibitors"     ),
    ( r"^exhibitors/contact/(?P<name>\w+)/$"                    , "contactExhibitors"     ),
    ( r"^exhibitors/contact/$"                                , "contactExhibitors"     ),
    
    ( r"^visitors/inscript/(?P<name>\w+)/(?P<lang>.+)/$"      , "inscript"     ),
    ( r"^visitors/inscript/(?P<name>\w+)/$"                    , "inscript"     ),
    ( r"^visitors/inscript/$"                                , "inscript"     ),

	#( r"^visitors/(?P<name>\w+)$"      				, "visitor"     ),
	( r"^visitors/(?P<name>\w+)/(?P<lang>.+)/$"    , "visitor"     ),
	( r"^visitors/(?P<name>\w+)/$"     	           , "visitor"     ),
    ( r"^visitors/$"                               , "visitor"    ),

	
    ( r"^exhibitors/(?P<name>\w+)/(?P<lang>.+)/$"   , "exhibitor"     ),
	( r"^exhibitors/(?P<name>\w+)/$"               , "exhibitor"     ),
    ( r"^exhibitors/$"                             , "exhibitor"     ),

	#( r"^inscript/$"								, "saint_gobain"),
    
#    ( r"^inscript/(?P<name>\w+)/(?P<lang>.+)/$"     , "inscript"),
#	( r"^inscript/(?P<name>\w+)/$"                   , "inscript"),
    
    (r'^i18n/', include('django.conf.urls.i18n')),
)

urlpatterns += patterns( "afcpweb.apps.misc.views",
    # 404 not-found: must be the last URL pattern.
    ( r"^.*$"                                         , "not_found"   ),
)

